{
    "resourceType": "Bundle",
    "id": "{{$timestamp}}",
    "meta": {
        "profile": [
            "https://fhir.by/AbstractArea/StructureDefinition/Bundle/MedicationDocument"
        ]
    },
    "identifier": {
        "system": "urn:ietf:rfc:{{$timestamp}}",
        "value": "urn:uuid:{{$timestamp}}"
    },
    "type": "document",
    "timestamp": "2024-07-22T11:12:21+00:00",
    "entry": [
         {
            "fullUrl": "Composition/{{$timestamp}}",
            "resource": {
                "resourceType": "Composition",
                "id": "{{$timestamp}}",
                "meta": {
                    "profile": [
                        "https://fhir.by/StructureDefinition/CompDocument"
                    ]
                },
                "status": "final",
                "type": {
                    "coding": [
                        {
                            "system": "https://fhir.by/ValueSet/CompositionType",
                            "code": "general"
                        }
                    ]
                },
                "subject": [
                    {
                        "reference": "Patient/pa-69377c81-92ea-11f0-aa4b-78d8e5545e22",
                        "display": "Тестируем Еами Васильевич"
                    }
                ],
                "date": "2024-07-22T11:12:21Z",
                "author": [
                    {
                        "reference": "Practitioner/a9fd2189-fe85-11ef-9450-1d25bbc3f449",
                        "display": "Майстрова Елизавета Андреевна"
                    }
                ],
                "title": "Discharge Summary",
                "custodian": {
                    "reference": "Organization/a1a103d1-bf02-4c95-818a-3e3bc32cabe0",
                    "display": "Государственное научное учреждение \"ОБЪЕДИНЕННЫЙ ИНСТИТУТ ПРОБЛЕМ ИНФОРМАТИКИ НАЦИОНАЛЬНОЙ АКАДЕМИИ НАУК БЕЛАРУСИ\""
                }
            }
        },
        {
            "fullUrl": "Patient/pa-69377c81-92ea-11f0-aa4b-78d8e5545e22",
            "resource": {
                "resourceType": "Patient",
                "id": "pa-69377c81-92ea-11f0-aa4b-78d8e5545e22",
                "meta": {
                    "profile": [
                        "https://fhir.by/StructureDefinition/PatientWithIdentificationNumber"
                    ]
                },
                "identifier": [
                    {
                        "use": "usual",
                        "type": {
                            "coding": [
                                {
                                    "system": "https://fhir.by/ValueSet/PersonalDocumentType",
                                    "code": "INP"
                                }
                            ]
                        },
                        "value": "7551306A009PB6"
                    }
                ],
                "active": true,
                "name": [
                    {
                        "family": "Тестируем",
                        "given": [
                            "Еами",
                            "Васильевич"
                        ]
                    }
                ],
                "telecom": [
                    {
                        "system": "phone",
                        "value": "89001234567"
                    }
                ],
                "gender": "male",
                "birthDate": "1989-01-31",
                "deceasedBoolean": false,
                "address": [
                    {
                        "use": "home",
                        "line": [
                            "Минск, г. Минск"
                        ],
                        "city": "г. Минск",
                        "state": "Минск",
                        "postalCode": "209124",
                        "country": "Беларусь",
                        "text": "Минск, г. Минск"
                    }
                ]
            }
        },
        {
            "fullUrl": "ImagingStudy/{{$timestamp}}",
            "resource": {
                "resourceType": "ImagingStudy",
                "id": "{{$timestamp}}",
                "meta": {
                    "lastUpdated": "2025-06-10T13:20:19.3443882+03:00",
                    "profile": [
                        "https://fhir.by/StructureDefinition/ImagingStudyBy"
                    ]
                },
                "extension": [
                    {
                        "url": "https://fhir.by/StructureDefinition/imageState",
                        "valueCodeableConcept": {
                            "coding": [
                                {
                                    "system": "https://fhir.by/ValueSet/ImageState",
                                    "code": "active",
                                    "display": "Активное"
                                }
                            ]
                        }
                    }
                ],
                "identifier": [
                    {
                        "value": "897t2y93u497236t84293",
                        "assigner":                     {
                            "reference": "PractitionerRole/90e87d84-1b67-11f0-8257-f1172741d6fc"
                        }
                    }
                ],
                "status": "available",
                "modality": [
                    {
                        "coding": [
                            {
                                "system": "https://fhir.by/ValueSet/DICOMmodalities",
                                "code": "OT",
                                "display": "Другое"
                            }
                        ]
                    }
                ],
                "subject": {
                    "reference": "Patient/pa-69377c81-92ea-11f0-aa4b-78d8e5545e22"
                },
                "started": "2025-12-18T13:20:19.3468741+03:00",
                "referrer": {
                    "reference": "PractitionerRole/90e87d84-1b67-11f0-8257-f1172741d6fc"
                },
                "procedure": [
                    {
                        "concept": {
                            "coding": [
                                {
                                    "system": "https://fhir.by/ValueSet/ImagingStudyCode",
                                    "code": "RPID10",
                                    "display": "КТ ангиография нижних конечностей с и без внутривенного контраста"
                                }
                            ]
                        }
                    }
                ],
                "basedOn": [
                    {
                        "reference": "ServiceRequest/123123"
                    }
                ],
                "series": [
                    {
                        "extension": [
                            {
                                "url": "https://fhir.by/StructureDefinition/ImagingStudyLink",
                                "valueString": "active"
                            }
                        ],
                        "uid": "134523453254",
                        "modality": {
                            "coding": [
                                {
                                    "system": "https://fhir.by/ValueSet/DICOMmodalities",
                                    "code": "OT",
                                    "display": "Другое"
                                }
                            ]
                        },
                        "started": "2025-12-18T13:20:19.3480273+03:00",
                        "instance": [
                            {
                                "uid": "64536154324",
                                "sopClass": {
                                    "system": "https://fhir.by/ValueSet/SOPclasses",
                                    "code": "1.2.840.10008.5.1.4.1.1.2",
                                    "display": "Хранение инкапсулированного MTL"
                                }
                            }
                        ]
                    }
                ]
            }
        }
    ]
}